package com.sandwich.admin.domain.repository;
import com.sandwich.admin.domain.CommentEntity;
import com.sandwich.admin.domain.ContentSummaryEntity;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.data.repository.PagingAndSortingRepository;

/**
 * @description 评论信息
 * @date 2021-07-28
 */
public interface CommentRepository extends PagingAndSortingRepository<CommentEntity, Long> {
    Page<CommentEntity> findByStatusAndContentSummaryPkAndParentPk(int status, long contentPk,long parentPk, Pageable pageable);
}